/**
 * 设备维修保养记录查询 - 编辑页面
 * @author yuan_rz
 * @date 2019/12/24 18:03
 */
define(function () {

    var self,
        app = win.app,
        doc = document,
        vueData = {
            isAdd: false,
            form: '',
            rules: {
               
            },
            selectOptions:{
                sys_y_n : app.datas_('sys_y_n')
            }
        },
        callObj
    ;

    var gwai741Edit = app.Module.extend({
        init: function () {
            self = this;
            self._super({
                _tag: 'gwai741_edit'
            }, win);
        },
        _call: function (tagData) {
            if (tagData.is_add) {
                vueData.isAdd = true;
                app.extendUpLow({
                    target: vueData.form,
                    res: {},
                    reset: true
                });
            } else {
                vueData.isAdd = false;
                callObj = tagData.obj;
                app.extendUpLow({
                    target: vueData.form,
                    res: callObj.data,
                    reset: true
                });
            }

        },
        _ready: function () {
            vueData.form = {};
            vueData.form.DEVICE_NAME = '';
            vueData.form.CUSTOMER_NAME = '';
            vueData.form.USER_NAME = '';
            vueData.form.ORG_NAME = '';
            this._super({
                vue: [{
                    el: '#gwai741_edit',
                    data: vueData,
                    methods: {},
                    created: function () {
                        self._setEleIsReady('gwai741_edit');
                    }
                }]
            });
        },
        _lazy: function () {
            this._super();
        }
    });

    return new gwai741Edit();

});